package com.shiyi.controller;

import com.shiyi.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 注意：需要提交的数据的属性名称与参数名称一致
 * @author wangzhanshuai
 * @date 2021/1/22 5:31 下午
 * @since 1.0
 */
@Controller
@RequestMapping("/converter")
public class ConverterController {

    @PostMapping("/testConverter")
    public String testConverter(@RequestParam("user") User user) {
        System.out.println(user);
        return "success";
    }
}
